package br.com.ir.tcc.geco.web;

public class Message {

	public final static String SUCCESS 	= "success";
	public final static String ERROR 	= "error";
	public static final String WARN 	= "warn";
	
	private String text;
	private String type;
	private Object content;
	
	public Message() {}
	
	public Message(String text, String type, Object content) {
		super();
		setText(text);
		setType(type);
		setContent(content);
	}
	
	public Message(String text, String type) {
		this(text, type, null);
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Object getContent() {
		return content;
	}

	public void setContent(Object content) {
		this.content = content;
	}

}
